package com.run.guifeng.model.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

@Data
@TableName("guifeng_mall_order")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)


public class Order extends BaseEntity {
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;

    @TableField(value = "order_no", exist = true)
    private String OrderNo;

    @TableField(value = "user_id", exist = true)
    private Integer userId;

    @TableField(value = "total_price", exist = true)
    private Double totalPrice;

    //@TableField(value="pay_status",exist=true)
    //private int payStatus;

    @TableField(value = "pay_time", exist = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date payTime;

    @TableField(value = "order_status", exist = true)
    private Integer orderStatus;

    @TableField(value = "user_name", exist = true)
    private String userName;

    @TableField(value = "user_phone", exist = true)
    private String userPhone;

    @TableField(value = "user_address", exist = true)
    private String userAddress;

    @TableField(value = "is_deleted", exist = true)
    private Boolean deleted;
}
